package com.heima.ssm.service;

import com.heima.ssm.pojo.Role;
import com.heima.ssm.pojo.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author Penguin
 * @create Date 2021/5/5  Time 18:17
 */
public interface IUserService extends UserDetailsService {
    List<UserInfo> findAll();

    void save(UserInfo userInfo);

    UserInfo findById(int userId);

    List<Role> findOtherRoleCouldAddToUser(int userId);

    void addRoleToUser(int userId, int[] roleIds);
}
